import * as React from 'react'
import { Router, Switch, Redirect, withRouter, Link,Route} from 'react-router-dom'
@withRouter
export default class LinkHome extends React.Component {
    render() {
      return (
       
        <div className="am-flexbox">
          <div className="am-flexbox-item">
          <a onClick={()=>{this.props.history.go(-1)}}  className="am-button tiny-blue" role="button">back</a>
          </div>
          <div className="am-flexbox-item am-ft-ellipsis">我是标题</div>
          <div className="am-flexbox-item" style={{"textAlign":"right"}}>
            <Link to={{ pathname: '/chat'}}  className="am-button tiny-blue" role="button" >home</Link>
          </div>
      </div>
      )
    }

  }